//
//  ViewController.h
//  Pong
//
//  Created by iD Student on 7/11/13.
//  Copyright (c) 2013 iD Student. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Ball.h"
@interface ViewController : UIViewController
{
    BOOL isTwoPlayer;
    NSTimer *gameTimer;
    
    int lastScorer;
    
    IBOutlet UIImageView *paddle1;
    IBOutlet UIImageView *paddle2;
    
    IBOutlet UIButton *play2PlayerButton;
    Ball *ball;
    
    int player1Score;
    int player2Score;
    
    IBOutlet UIImageView *topGoal;
    IBOutlet UIImageView *bottomGoal;
    IBOutlet UIImageView *rightWall;
    IBOutlet UIImageView *leftWall;
}

-(IBAction)playTwoPlayerPressed:(id)sender;
-(void) updateGame;
-(void) moveBall;
-(void) checkForGoal;
-(void) resetBall;
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
@end
